# 作者：小七
# 2024年12月28日

def use_memory():
    a = -6
    b = -6
    print(a is b)
    a = 'hello'
    b = 'hello'
    print(a is b)


def use_method():
    a = (1, 2, 3)
    b = ('a', 'b', 'c')
    print(list(zip(a, b)))
    print(dict(zip(a, b)))

    seasons = ['Spring', 'Summer', 'Fall', 'Winter']
    list2 = list(enumerate(seasons))
    print(list2)
    print(dict(list2))
    my_dict = dict(list2)
    print({v: k for k, v in my_dict.items()})
    # dict1 = {}
    # for i in list2:
    #     dict1[i[1]] = i[0]
    # print(dict1)


if __name__ == '__main__':
    use_method()
